#include <iostream>
#include <QDebug>
#include <QString>

using namespace std;

int main()
{
    QString str = "hello world";
    qDebug() << str << "yejing";

    QString s = "Jack";
    qDebug() << "My name is " << s << ", nice to meet you!" ;
    qDebug("My name is " + s.toLatin1() + ", nice to meet you!\n");

    int num = 20;
    char str1[20]="hello world";
    qDebug("如果只写在括号里，是不需要QDebug头文件的 %d %s", num, str1);

    qDebug() << QObject::tr("共产党宣言");
    return 0;
}
